<include file="public/head"/>
<include file="public/scripts"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<body>
<div class="wrap js-check-wrap">
    <!--<ul class="nav nav-tabs">-->
        <!--<li><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/index')}">微信公众号信息</a></li>-->
        <!--<li class="active"><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/reply')}">公众号管理</a></li>-->
    <!--</ul>-->
    <!--<br>-->
    <!-- <ul class="nav nav-tabs">
        <li class="active"><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/reply')}">回复消息</a></li>
        <li><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/menu')}?id=0">自定义菜单</a></li>
        <li><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/menu_list')}">个性义菜单</a></li>
    </ul> -->

    <ul class="nav nav-tabs">
        <li ><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/reply')}">关注欢迎语</a></li>
        <li class="active"><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/keyword_reply')}">关键词回复</a></li>
        <li ><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/add_keyword')}">添加关键词</a></li>
    </ul>
    <!-- <br>
    <ul class="nav nav-tabs">
        <li ><a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/add_keyword')}">添加关键词</a></li>
    </ul> -->
    <form class="js-ajax-form" action="" method="post">
        <br>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">编号</th>
                <th width="60">所属类型</th>
                <th width="70">关键词</th>
                <th width="70">添加时间</th>
                <th width="50">状态</th>
                <th width="80">操作</th>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                <td>{$vo.id}</td>
                <td><if condition="$vo.type eq 1">文字 <elseif condition="$vo.type eq 2" />图片 <elseif condition="$vo.type eq 3" />图文 </if></td>
                <td>{$vo.keyword}</td>
                <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
                <td>
                    <if condition="$vo.status eq 1">
                        <a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/setstatus')}?status=0&id={$vo.id}" class="js-ajax-dialog-btn" data-msg="确定隐藏吗？">显示</a>
                        <else />
                        <a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/setstatus')}?status=1&id={$vo.id}" class="js-ajax-dialog-btn" data-msg="确定显示吗？">隐藏</a>
                    </if>
                </td>
                <td>
                    <a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/info')}?id={$vo.id}">{:lang('EDIT')}</a>
                    <a href="{:cmf_plugin_url('QbtWxOs://AdminIndex/del')}?id={$vo.id}" class="js-ajax-delete">{:lang('DELETE')}</a>
                </td>
                </tr>
            </foreach>

        </table>

        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
</body>
</html>
